const uint16 : Uint16Array = new Uint16Array (2);
uint16 [0] = 42;
console.log (uint16 [0]);
console.log (uint16.length);
console.log (uint16.BYTES_PER_ELEMENT);
const x : Uint16Array = new Uint16Array ([21, 31]);
console.log (x [1]);
const y : Uint16Array = new Uint16Array (x);
console.log (y [0]);
const buffer : ArrayBuffer = new ArrayBuffer (16);
const z : Uint16Array = new Uint16Array (buffer, 2, 4);
console.log (z.byteOffset);
